package com.example.yc.controller;

import com.example.yc.Service.TestService;
import com.example.yc.mapper.TestMapper;
import com.example.yc.pojo.Json;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class TestController {
    private final static Logger logger  = LoggerFactory.getLogger(TestController.class);
    @Resource
    private TestService testService;

    @RequestMapping("/test")
    @ResponseBody
    public Json s() {
        Json json = new Json();
        json.setMsg(null);
        testService.findTestList("杨晨");
        json.setObj("");
        return json;
    }
}
